<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>第三方链接</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../plugins/mui/mui.min.css" rel="stylesheet" />
		<script src="../../js/statistics.js"></script>
		<style>
			.header{
				background: #fff;
			}
			.header h1{
				color:#333;
				font-size:18px;	
			}
			.header a{
				color:#666;
			}
		</style>
	</head>
	<body>
		<header class='mui-bar mui-bar-nav header'>
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 id='title' class='mui-title'></h1>
		</header>
		<script src="../../plugins/mui/mui.min.js"></script>
		<script src='../../plugins/jquery/jquery-3.1.0.min.js'></script>
		<!--<script type="text/javascript" src="../../js/judge.js" ></script>-->
		<script type="text/javascript">
			mui.plusReady(function(){
				var storage_array=
						[
							'trave_qc','trave_hc','trave_fj','trave_gj','trave_dd','trave_wf', 'trave_nc','life_wx','life_hq', 'life_wl','life_kd','life_tq','life_jy','life_gh','life_zx','life_bj','pay_hf'
						];
				//存储数据
				var self=plus.webview.currentWebview(),
					title=self.title,//标题
					life=self.life,//弹框信息
					isStorage=self.isStorage,//存储
					Storage;
				$('#title').html(title);
				for(var i=0;i<storage_array.length;i++){
					if(storage_array[i]==isStorage){
						if(plus.storage.getItem(isStorage)=='true'){
							mui.alert("本服务由"+life+"提供，相关服务和责任将由该第三方承担。如有问题请咨询该公司客服。",'免责声明','我知道了',function(){
								Storage=plus.storage.setItem(isStorage,'false');
							});
						}
					}
				}
				//判断是否为false
				var barItemWebviewArray;
				function inittabitemWebviews(){
					barItemWebviewArray= mui.preload({
						id:self.link,
						url:self.link,
						styles:{
							top:'44px',
							bottom: '0',
							left: '0px',
							bounce: 'vertical',
						},
						waiting:{
							autoShow:true,//自动显示等待框，默认为true
							title:'正在加载...'//等待对话框上显示的提示内容
			      		}
					});
					self.append(barItemWebviewArray);
					barItemWebviewArray.show();	
				}
				inittabitemWebviews();
			})
		</script>
	</body>
</html>